Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 10 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | View Code Duplication | "use strict"; |
|
9 | Cache.prototype.get = function () { |
||
10 | if ((this.timeCached + this.timer) < (new Date()).getTime()) { |
||
11 | this.cacheItem = null; |
||
12 | this.timeCached = null; |
||
13 | return null; |
||
14 | } |
||
15 | else { |
||
16 | return this.cacheItem; |
||
17 | } |
||
18 | }; |
||
19 | Cache.prototype.refresh = function (cacheItem) { |
||
26 | //# sourceMappingURL=cache.js.map |